#!/bin/zsh

export ZSH_PLUGINS_DIR=$HOME/.local/share/zsh/plugins
[ ! -d $ZSH_PLUGINS_DIR ] && mkdir -p $ZSH_PLUGINS_DIR

# zsh-vim binding: fixes the vi mode bindings
# https://github.com/softmoth/zsh-vim-mode#installation
[ -f "$ZSH_PLUGINS_DIR/vimbinds.zsh" ] && source "$ZSH_PLUGINS_DIR/vimbinds.zsh" || curl -o $ZSH_PLUGINS_DIR/vimbinds.zsh https://raw.githubusercontent.com/softmoth/zsh-vim-mode/main/zsh-vim-mode.plugin.zsh

# Syntax highlighing in console
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null
